const BTN_ICON = '';


function ImageButton(editorId:any, onclick:any) {
    //@ts-ignore
    window.UE.registerUI('upload-image', (editor:any, uiName:any) => {
        //@ts-ignore
        return new window.UE.ui.Button({
            name: uiName,
            title: '图片上传',
            cssRules: `background-image: url('${BTN_ICON}') !important; background-size: 16px;background-repeat: no-repeat;background-position: center;`,
            onclick,
        });
    },100, editorId);
}

export default ImageButton